import React from 'react';
import './Error403.styl';

const CrmCarTip = '无权限访问，请重新登录！'

class Error403 extends React.Component {
    constructor(props) {
        super(props);
        this.state = {}
    }

    componentDidMount() {

    }

    goLogin = () => {
        this.props.history.push({pathname: "/"});
    }

    render() {
        return (
            <div className="error-div">
                <div className="top403"></div>
                <div className="middle">{CrmCarTip}</div>
                <div className="bottom">
                    <button type="button" onClick={() => this.goLogin()}>前往登录</button>
                </div>
            </div>
        )
    }
}

export default Error403;